package com.yanlin.apidriver.controller;

import com.yanlin.internalcommon.dto.ResponseResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>标题：TestController</p>
 * <p>功能：</p>
 * <p>
 * 其他说明：
 * </p>
 * <p>审核：</p>
 * <p>重构：</p>
 * <p>创建日期：2025-06-15 13:12</p>
 *
 * @author yanlin
 */
@RestController
public class TestController {

    @RequestMapping(method = RequestMethod.GET, value = "/auth-code")
    public ResponseResult test() {
        return ResponseResult.success("api-driver");
    }

    @RequestMapping(method = RequestMethod.GET, value = "/noauth-code")
    public ResponseResult noauth() {
        return ResponseResult.success("noauth test");
    }
}